<!DOCTYPE html>
<html>


<!-- Mirrored from /theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>乡土味士-后台管理中心 - 添加/修改店员</title>
    <meta name="keywords" content="添加/修改店员">
    <meta name="description" content="添加/修改店员">

    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    
    <!--选择搜索框样式文件-->
    <link href="__PUBLIC__/css/plugins/chosen/chosen.css" rel="stylesheet">
    
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">





</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title" style="min-height: 65px;margin-bottom: 15px;">
                    <h5>
                        <a href="<?=U('StoreSaler/index')?>" title="店员列表">
                            <button type="button" class="btn btn-primary">店员列表</button>
                        </a>
                        <a href="<?=U('StoreSaler/addSaler')?>" title="添加店员">
                            <button type="button" class="btn btn-primary">+添加店员</button>
                        </a>
                    </h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal js_form" action="<?=U('StoreSaler/addSaler')?>">
                        <notempty  name="salerInfo.id">
                            <input type="hidden" name="id" value="<?=$salerInfo['id']?>">
                        </notempty >
                        <div class="form-group">
                            <label class="col-sm-2 control-label">选择会员</label>
                            <div class="input-group col-sm-10" style="margin-left: 17.5%!important;">
                                <select data-placeholder="选择会员" name="u_id" class="chosen-select form-control m-b" style="width:23%;" tabindex="2">
                                    <option value="">请选择会员</option>
                                    <volist name="member" id="vo">
                                        <option value="{$vo.id}" hassubinfo="true" <?=$vo['id']==$salerInfo['u_id']?'selected':''?> >
                                            {$vo.nickname}
                                        </option>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">店员姓名</label>
                            <div class="col-sm-10">
                                <input type="text" name="salername" class="form-control" value="<?=$salerInfo['salername']?>" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">店员手机号</label>
                            <div class="col-sm-10">
                                <input type="text" name="mobile" class="form-control" value="<?=$salerInfo['mobile']?>" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">所属门店</label>
                            <div class="input-group col-sm-10" style="margin-left: 17.5%!important;">
                                <select data-placeholder="所属门店" name="storeid" class="chosen-select form-control m-b" style="width:23%;" tabindex="2">
                                    <option value="">请所属门店</option>
                                    <volist name="shop_store" id="vo">
                                        <option value="{$vo.id}" hassubinfo="true" <?=$vo['id']==$salerInfo['storeid']?'selected':''?>>
                                            {$vo.storename}
                                        </option>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>
                            <div class="col-sm-10">
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" <?=$salerInfo['status']==1||empty($salerInfo['status'])?'checked=""':''?> value="1" name="status"> <i></i> 启用</label>
                                </div>
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" <?=$salerInfo['status']==0&&!empty($salerInfo['status'])?'checked=""':''?> value="0" name="status"> <i></i>禁用</label>
                                </div>
                            </div>
                        </div>


                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <!--<button class="btn btn-white" type="submit">取消</button>-->
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/js/jquery.form.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>

<script src="__PUBLIC__/js/plugins/chosen/chosen.jquery.js"></script>
<script src="__PUBLIC__/js/plugins/jsKnob/jquery.knob.js"></script>
<script src="__PUBLIC__/js/plugins/jasny/jasny-bootstrap.min.js"></script>
<script src="__PUBLIC__/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="__PUBLIC__/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
<script src="__PUBLIC__/js/plugins/nouslider/jquery.nouislider.min.js"></script>
<script src="__PUBLIC__/js/plugins/switchery/switchery.js"></script>
<script src="__PUBLIC__/js/plugins/ionRangeSlider/ion.rangeSlider.min.js"></script>
<script src="__PUBLIC__/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="__PUBLIC__/js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="__PUBLIC__/js/plugins/clockpicker/clockpicker.js"></script>
<!--<script src="__PUBLIC__/js/plugins/cropper/cropper.min.js"></script>-->
<script src="__PUBLIC__/js/demo/form-advanced-demo.min.js"></script>



<script>

    //表单提交
    $(".js_form").ajaxForm({
        //定义返回JSON数据，还包括xml和script格式
        dataType: 'json',
        success: function(data) {
            //提交成功后调用
            if(data.status==1) {
                layer.msg(data.info, {icon:1,time:1000},
                    function(){
                        window.location.href= data.url;
                    });
            }else{
                layer.msg(data.info, {icon:2,time:1000});
            }
        }
    });
</script>


</body>


<!-- Mirrored from /theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
</html>
